package edu.njust.LabSystem.Service;

import org.apache.ibatis.session.SqlSession;

import edu.njust.LabSystem.dao.ILab;
import edu.njust.LabSystem.entity.Lab;
import edu.njust.LabSystem.entity.MybatisUtil;

public class LabService {
	public Lab getByLabId(String LabId){
		SqlSession sqlSession=MybatisUtil.getSqlSession();
		
		ILab Ilab=sqlSession.getMapper(ILab.class);
		Lab lab=Ilab.getByLabId(LabId);
				
		sqlSession.close();
		
		return lab;
	}
}
